#########################################################################
##
## This file is part of the SAMRAI distribution.  For full copyright 
## information, see COPYRIGHT and LICENSE. 
##
## Copyright:     (c) 1997-2019 Lawrence Livermore National Security, LLC
## Description:   makefile for SAMRAI patch hierarchy refine/coarsen tests 
##
#########################################################################

SAMRAI        = @top_srcdir@
SRCDIR        = @srcdir@
SUBDIR        = tools/restart
VPATH         = @srcdir@
OBJECT        = ../..

default: restart-redistribute	

include $(OBJECT)/config/Makefile.config

CXX_OBJS =	RedistributedRestartUtility.o \
		main.o

restart-redistribute:	$(CXX_OBJS) $(LIBSAMRAIDEPEND)
			$(CXX) $(CXXFLAGS) $(LDFLAGS) $(CXX_OBJS) \
			$(LIBSAMRAI) $(LDLIBS) -o restart-redistribute
			$(RM) $(BIN_SAM)/restart-resdistribute
			cp restart-redistribute $(BIN_SAM)

tools: restart-redistribute

clean:
	$(CLEAN_COMMON_TEST_FILES)
	$(RM) restart-redistribute

include $(SRCDIR)/Makefile.depend
